<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>

<div>
    
</div>


    <script>
        // let arr = {
        //     0:1,
        //     1: 2,
        //     2: 3,
        //     length: 3
        // };
        // let arr2 = Array.from(arr,item=>item*2);
        // console.log(arr2);

        // let a = [10,20,30,45];
        // let index = a.findIndex((item)=> item>40);
        // console.log(index);

            var div = document.querySelector('div');
        let a = {
            id:1,
            name:'jack',
            sex:'男'
        }

        let html = `
            <div>
                <p>${a.id}</p>
                <p>${a.name}</p>
                <p>${a.sex}</p>
            </div>
        `;

        div.innerHTML = html;
    </script>
</body>
</html>